#ifndef AI_H
#define AI_H

#include "ChessView.h"
#include "board.h"

class GameEngine;


class AI
{
public:

    IChessView * myView;
    Board * myBoard;
    GameEngine * myGame;

    int whiteTotalKillMoves;
    int blackTotalKillMoves;

    AI();
    void setView(IChessView * view , Board * board , GameEngine * game);
    void doRandomComputerMove();
    bool ColorCanAttack(Color cor);
    int cellsHasColor(Color cor, std::vector<Cell> cells);
    std::vector<Cell> whichCellsHasColor(Color cor, std::vector<Cell> cells);
    int PieceValue(Cell c);
    Cell findBestKill(std::vector<Cell> killMoves);
};

#endif // AI_H
